from django.urls import path

from account import views


urlpatterns = [
    path('user/info/', views.user_info, name='user_info'),#查询优化
    path('user/list/slice/', views.user_list_slice, name='user_list_slice'),#分页
    path('user/list/paginator/', views.user_list_paginator, name='user_list_paginator'),#利用分页器进行分页
    path('user/list/class/', views.UserListView.as_view(), name='user_list_class'),#面向对象分页
    path('user/register/', views.user_register, name='user_register'),#用户注册
    path('user/signup/trans/', views.user_signup_trans, name='user_signup_trans'),#事物的使用装饰器
    path('user/signup/with/', views.user_signup_trans_with, name='user_signup_trans_with'),#事物with
    path('user/signup/hand/', views.user_signup_trans_hand, name='user_signup_trans_hand'),#事物的提交
]
